<h1><?=$xml->channel->title?></h1>
<ul id="feedPreview" class="nolist"><?php
$counter = 0;
foreach($xml->channel->item as $item) {
	$counter++;
	$title = $text->truncate($item->title, 25);
	$link = $item->link?'Link: '.$html->link(str_replace('http://','',$text->truncate($item->link, 40)),$item->link):'';
	$enclosure = $item->enclosure?'Enclosure: '.$html->link(str_replace('http://','',$text->truncate($item->enclosure->url, 40)),$item->enclosure->url):'';
	echo <<<EOD
	<li>{$title}<br />
		$link<br />
		$enclosure
	</li>
EOD;
if($maxitems && $counter >= $maxitems) {break;}
}
?></ul>